An Incremental Pattern Matching Algorithm for the Pipelined Lexical Scanner

نویسندگان

  • Kozo Itano
  • Yutaka Sato
  • Hidemi Hirai
  • Tomoyoshi Yamagata
چکیده

Lexical scan is a basic part of language processors such as assemblers, compilers, and source code interpreters [2]. The lexical scan takes a large amount of processing time, although the processing algorithm is rather simple and regular. Hence, the hardware realization is especially effective for the speed-up of the processing. Based on the experience of the design and evaluation of a hardware lexical scanner [1,5], an efficient pattern matching algorithm was devised to be incorporated in the pipelined lexical scanner [3]. In this approach, variable-length character strings are converted into compact binary form for the easiness of manipulation in addition to the usual lexical scan. In this paper, details of the lexical scanning algorithm with string compaction are disclosed. The algorithm is based on the associative lexical table and the character stream oriented pattern matching algorithm. The performance evaluation is also given for the actual sample programs of C and PASCAL.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Optimal fast digital error correction method of pipelined analog to digital converter with DLMS algorithm

In this paper, convergence rate of digital error correction algorithm in correction of capacitor mismatch error and finite and nonlinear gain of Op-Amp has increased significantly by the use of DLMS, an evolutionary search algorithm. To this end, a 16-bit pipelined analog to digital converter was modeled. The obtained digital model is a FIR filter with 16 adjustable weights. To adjust weights o...

متن کامل

General Incremental Lexical Analysis

We present the first fully general approach to the problem of incremental lexical analysis. Our approach utilizes existing generators of (batch) lexical analyzers to derive the information needed by an incremental run-time system. No changes to the generator’s algorithms or run-time mechanism are required. The entire pattern language of the original tool is supported, including such features as...

متن کامل

An Incremental DC Algorithm for the Minimum Sum-of-Squares Clustering

Here, an algorithm is presented for solving the minimum sum-of-squares clustering problems using their difference of convex representations. The proposed algorithm is based on an incremental approach and applies the well known DC algorithm at each iteration. The proposed algorithm is tested and compared with other clustering algorithms using large real world data sets.

متن کامل

Incremental Graph Pattern Matching: Data Structures and Initial Experiments

Despite the large variety of existing graph transformation tools, the implementation of their pattern matching engine typically follows the same principle. First a matching occurrence of the left-hand side of the graph transformation rule is searched by some graph pattern matching algorithm. Then potential negative application conditions are checked that might eliminate the previous occurrence....

متن کامل

Incremental Pattern Matching for Regular Expressions

Graph pattern matching lies at the heart of any graph transformationbased system. Incremental pattern matching is one approach proposed for reducing the overall cost of pattern matching over successive transformations by preserving the matches that stay relevant after a rule application. An important issue in any matching scheme, is the ability to properly and consistently deal with various fac...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Inf. Process. Lett.

دوره 27  شماره 

صفحات  -

تاریخ انتشار 1988